home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / matmap < prev    next >
Text File  |  1995-11-11  |  2KB  |  78 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Material_map example
  3. // File by Drew Wells
  4. // NOTE: Uses POVMAP.GIF
  5.  
  6. #version 3.0
  7. global_settings { assumed_gamma 2.2 }
  8.  
  9. #include "colors.inc"
  10. #include "textures.inc"
  11. #include "skies.inc"
  12.  
  13. camera {
  14.    location  <0,  0,-120>
  15.    direction <0,  0,   2>
  16.    up        <0,  1,   0>
  17.    right   <4/3,  0,   0>
  18. }
  19.  
  20.  
  21. sphere { <0, 0, 0>, 25
  22.    texture {
  23.       material_map {
  24.          gif "povmap.gif"
  25.          /* Now a list of textures to map with instead of colors */
  26.          texture {
  27.             pigment {color red 0.3 green 0.1 blue 1}
  28.             normal  {ripples 0.85 frequency 10 }
  29.             finish  {specular 0.75}
  30.             scale 5
  31.          }
  32.  
  33.          texture {
  34.             pigment {White}
  35.             finish {ambient 0 diffuse 0 reflection 0.9 specular 0.75}
  36.          }
  37.  
  38.          texture {pigment{NeonPink} finish{Luminous}}
  39.  
  40.          texture {
  41.             pigment {
  42.                gradient y
  43.                colour_map {
  44.                   [0.00, 0.33  colour red 1 green 0 blue 0
  45.                                colour red 0 green 0 blue 1]
  46.                   [0.33, 0.66  colour red 0 green 0 blue 1
  47.                                colour red 0 green 1 blue 0]
  48.                   [0.66, 1.001 colour red 0 green 1 blue 0
  49.                                colour red 1 green 0 blue 0]
  50.                }
  51.             }
  52.             finish{specular 0.75}
  53.             scale 8
  54.          }
  55.       }
  56.       scale 30
  57.       translate <-15, -15, 0>
  58.    }
  59. }
  60.  
  61. /*Sky*/
  62. sky_sphere { S_Cloud2 }
  63.  
  64. plane { y,-25
  65.    pigment {
  66.       checker  color Gold color Firebrick
  67.       scale 10
  68.    }
  69.    finish {
  70.       ambient 0.1
  71.       diffuse 0.8
  72.       /*reflection 0.6*/
  73.    }
  74. }
  75.  
  76.  
  77. light_source {<100, 140, -130> colour White}
  78.